﻿using NewsPortal.Domain;
using System.Data.Entity.ModelConfiguration;

namespace NewsPortal.DataAccess.POCO.Config
{
    public class TagConfig: EntityTypeConfiguration<Tag>
    {
        public TagConfig()
        {
            this.HasKey(t => t.Id)
                .Property(p => p.Text)
                .IsRequired()
                .HasColumnType("nVarchar")
                .HasMaxLength(100);
        }
    }
}